package com.examination.system.instructor.student.ext;

import com.examination.system.instructor.student.People;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;


import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;


/**
 * @author 寇淇芮
 * @Date 2019/10/14 17:36
 */
@Data
@Entity
@GenericGenerator(name = "tbStudentEssential-uuid", strategy = "assigned")
@Table(name= "tb_Studentessential")
public class TbStudentEssential extends People implements Serializable {
    @Id
    @GeneratedValue(generator = "tbStudentEssential-uuid")
    @Column(name = "id")
    private String  id;

    @Column(name = "student_number")
    private String studentNumber;


    @Column(name = "enrollment_date")
    private Date enrollmentDate;

    @Column(name = "graduate_date")
    @JsonFormat(pattern="yyyy年MM月dd日",timezone = "GMT+8")
    private Date graduateDate;

    @Column(name = "degree_id")
    private String degreeId;
}
